import request from '@/utils/request'
let baseUrl =
  process.env.NODE_ENV === 'production' ? '/api/riskTrial' : 'riskTrial'
// 数据源接口使用情况
export const getList = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/risk/feature-stat/list',
    method: 'post',
    data
  })
// 数据源接口
export const loadDatasource = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/risk/feature-stat/load-datasource',
    method: 'post',
    data
  })
// 指标
export const loadFeatureCode = (data?: any) =>
  request({
    baseURL: baseUrl,
    url: '/risk/feature-stat/load-feature-code',
    method: 'post',
    data
  })
